package com.yxhl.zoume.core.user.ui.fragment;

import android.view.View;

import com.yxhl.zoume.R;
import com.yxhl.zoume.common.ui.fragment.BaseFragment;
import com.yxhl.zoume.core.func.webpage.info.WebPageEntrance;
import com.yxhl.zoume.core.user.ui.activity.UserContainerActivity;

import butterknife.OnClick;

/**
 * 帮助中心
 * Created by vhawk on 16/4/12.
 */
public class HelpCenterFragment extends BaseFragment {

//    /**
//     * 支付说明
//     */
//    @BindView(R.id.rl_pay_desc)
//    public RelativeLayout payDescRl;
//
//    /**
//     * 常见问题
//     */
//    @BindView(R.id.rl_common_problem)
//    public RelativeLayout commonProblemRl;


    public static HelpCenterFragment newInstance() {
        HelpCenterFragment fragment = new HelpCenterFragment();
        return fragment;
    }


//    /**
//     * 支付说明点击
//     */
//    @OnClick(R.id.rl_pay_desc)
//    public void payDescClick() {
//        getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.PAYMENT_INTRODUCTION);
//    }
//
//    /**
//     * 常见问题点击
//     */
//    @OnClick(R.id.rl_common_problem)
//    public void commonProblemClick() {
//        getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.FAQ);
//    }


    @Override
    protected void initializeInjector() {

    }

    @Override
    protected int getLayoutResId() {
        return R.layout.fragment_user_center_help_center;
    }

    @Override
    protected void setupToolBar() {
        ((UserContainerActivity) mActivity).setToolbarTitle(getString(R.string.help_center));
    }

    /**
     * 条目点击事件
     *
     * @param view
     */
    @OnClick({R.id.ll_help_center_bus, R.id.ll_help_center_express, R.id.ll_help_center_special, R.id.ll_help_center_official})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ll_help_center_bus:
                getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.HELP_BUS);
                break;
            case R.id.ll_help_center_express:
                getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.HELP_EXPRESS);
                break;
            case R.id.ll_help_center_special:
                getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.HELP_SPECIAL);
                break;
            case R.id.ll_help_center_official:
                getAppComponent().navigator().navigateToWebPageActivity(mActivity, WebPageEntrance.HELP_OFFICIAL);
                break;
        }
    }
}
